<div id="control">
	<a href="{Url::anchor("admin/{Input::get(1)}")}" class="item small text"><img src="/styles/admin/gfx/icons/small/cancel.png" alt="Đóng"/><span>Đóng</span></a>
</div>

<div class="section">
	<div class="box">
		<div class="title">
			Inputs and textareas
			<span class="hide"></span>
		</div>
		<div class="content">
			<form action="{Url::current()}" method="post" enctype="multipart/form-data">
				<div class="row">
					<label>Tên</label>
					<div class="right"><input type="text" name="txtName" value="{if isset($post)}{$post.name}{/if}" maxlength="50" placeholder="Max. 50 characters..." /></div>
				</div>
                <div class="row">
					<label>Keywords</label>
					<div class="right"><input type="text" name="keywords" value="{if isset($post)}{$post.keywords}{/if}"/></div>
				</div>
				<div class="row">
					<label>Description</label>
					<div class="right"><input type="text" name="description" value="{if isset($post)}{$post.description}{/if}"/></div>
				</div>           
                <div class="row">
					<label>Hình ảnh</label>
					<div class="right">
						{if isset($post.images) && $post.images neq ''}<img src="{$post.images}" width="160px" height="90px" alt="image" /><br />{/if}
						<input type="file" name="images" />
					</div>
				</div>
                <div class="row">
                    <label>Mô tả</label>
                    <div class="right"><textarea name="txtShort" rows="" cols="" style="height : 60px;">{if isset($post)}{$post.content_short}{/if}</textarea></div>
                </div>
                <div class="row">
					<label>Nội dung </label>
					<div class="right">
					{if isset($post)}
        				{Editor::display('content', {$post.content}, TRUE)}
        			{else}
        				{Editor::display('content', NULL, TRUE)}
        			{/if}
					</div>
				</div>
                <div class="row">
					<div class="right">
                        <input type="hidden" name="token" value="{Security::setToken('post_form')}" />
						<input type="hidden" name="action" value="{$action}" />
						<button type="submit"><span>Save</span></button>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>